<template>
  <div>
    <div class="topnav">
      <div class="father">
        <img :src="list.headimgurl" alt class="topimg">
      </div>
      <router-link class="bianji" :to="{name:'me_shopbianji'}">
        <img src="../../assets/images/bianji.png" alt>
      </router-link>
      <div class="topnavsun">
        <span>{{list.companyName}}</span>
        <span>id:{{list.companyId}}</span>
      </div>
      <div class="toptext">店铺行业返点</div>
    </div>
    <div class="solid">
      <ul>
        <li>
          <span>{{list.companyCommision}}%</span>
          <br>
          <span>{{list.industryName}}</span>
        </li>
        <!-- <li>
          <span>2%</span>
          <br>
          <span>服装鞋帽</span>
        </li>
        <li>
          <span>2%</span>
          <br>
          <span>海鲜食品</span>
        </li> -->
      </ul>
    </div>

    <div class="bommsg">
      <div class="msg_sun">详细信息</div>
      <div class="bominput">
        <span>详细地址:</span>
        <span>{{list.address}}</span>
      </div>
      <div class="bominput">
        <span>联系方式:</span>
        <span>{{list.mobile}}</span>
      </div>
      <div class="bominput">
        <span>营业时间:</span>
        <span>{{list.businessStartTime}} ~ {{list.businessEndTime}}</span>
      </div>
      <div class="bomarea">
        <span>店铺介绍:</span>
        <span>{{list.slogan}}</span>
      </div>
    </div>

    <div class="bomact">
      <div class="act_title">店铺地图</div>
      <div class="shopMap" id="shopMap" style="height:292px; width:100%;"></div>
      <div class="map-content" v-show="false">
        <div class="top-add">
          <i class="icon"></i>
          朝阳路八里庄东里
        </div>
        <div class="map"></div>
      </div>
    </div>
  </div>
</template>
<script>

export default {
  components: {
    
  },
  data() {
    return {
      list:'',

      imgUrls: [],
      shopsID: '',
      headimgurl:
        "",
    };
  },
  mounted() {
    this.info();
  },
  methods: {
    info(){
       this.$http.get(this.APIURL_PREFIX+'/api/companyInfo')
        .then((res)=>{
          console.log(res)
          this.list=res.data.data
          console.log(this.list)



          this.shopsID = this.list.companyId;
          console.log(this.list.companyId)
          if (this.list.imgHeadPhoto != "") {
            this.imgUrls = this.list.imgHeadPhoto.split(",");
            console.log(this.imgUrls);
          }
           var center = new qq.maps.LatLng(
            res.data.data.latitude,
            res.data.data.longitude
          );
          var map = new qq.maps.Map(document.getElementById("shopMap"));
          map.panTo(center);
          map.zoomTo(13);
          var marker = new qq.maps.Marker({
            position: center,
            map: map
          });
        })
        .catch((err)=>{
          console.log(err)
        })
    },
  }
};
</script>

<style scoped>
@import "../../assets/personal/css/me_shop.css";
</style>
